export class ApiPath {
  static server = {
    dev: 'http://114.132.49.252:8080/api/v1',
    local: 'http://localhost:8080/api/v1',
    production: '',
  }
  static imageServer = {
    dev: 'http://114.132.49.252:8085/server/img/',
    local: '/assets/images',
    production: '',
  }

  public static readonly SERVER_PATH = this.server.dev;
  // public static readonly SERVER_PATH = this.server.local;
  public static readonly IMAGE_SERVER_PATH = this.imageServer.dev;
  public static readonly ADMIN_IMG_PATH = this.IMAGE_SERVER_PATH + "admin.jpg";

  static request = {
    login: '/login',
    register: '/register',

    forum: {
      recentPosts: '/forum/recentPosts',
      postDetail: '/forum/user/postDetail',
      newPost: '/forum/user/newPost',
      recentBulletins: '/forum/recentBulletins'
    },

    announce: {
      recentBulletins: "/forum/recentBulletins",
    },

    advice: {
      sendAdvice: "/user/sendAdvice",
    },

    user: {
      getInfo: "/user/getInfo",
      changeInfo:"/user/changeInfo"
    }
  }

}
